package leetcode_周赛._2021._202107._20210704;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/7/4 10:31
 * 基于排列构建数组
 * 算法：数组
 */
public class _5800 {

    public int[] buildArray(int[] nums) {
        int[] ans = new int[nums.length];
        for (int i = 0; i < nums.length; i++) ans[i] = nums[nums[i]];
        return ans;
    }

}
